from google.appengine.ext import ndb

class RoomProfiles(ndb.Model):
    title = ndb.StringProperty()
    description = ndb.TextProperty()
    price = ndb.IntegerProperty()
    location = ndb.StringProperty()
    google_id = ndb.UserProperty()
    image_url = ndb.StringProperty()
    latitude = ndb.FloatProperty()
    longitude = ndb.FloatProperty()
    #details
    house_type = ndb.StringProperty()
    room_type = ndb.StringProperty()
    bathroom_count = ndb.IntegerProperty()
    smoking = ndb.BooleanProperty()
    preferred_gender = ndb.StringProperty()
    preferred_age = ndb.StringProperty()
    #amenities
    television =ndb.BooleanProperty()
    sky_cable = ndb.BooleanProperty()
    onsuite = ndb.BooleanProperty()
    internet = ndb.BooleanProperty()
    heating = ndb.BooleanProperty()
    air_con = ndb.BooleanProperty()


class UserPhoto(ndb.Model):
    google_id = ndb.UserProperty()
    blob_key = ndb.BlobKeyProperty()
    user = ndb.StringProperty()


class messageArchive(ndb.Model):
    message_from = ndb.StringProperty()
    message_to = ndb.StringProperty()
    message_subject = ndb.StringProperty()
    message_content = ndb.TextProperty()